package com.bytz.modules.cms.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.function.Consumer;
import java.util.function.Predicate;

@AllArgsConstructor
@Getter
@Setter
public class EntityCheckerItem<E> {
    /**
     * 是否是要的记录
     */
    private Predicate<E> predicator;

    /**
     * 做检查
     */
    private Consumer<E> checker;
}
